package com.qiangesoft.miniapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.miniapp.entity.SysUser;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author qiangesoft
 * @since 2024-07-16
 */
public interface ISysUserService extends IService<SysUser> {

    /**
     * 通过微信openid查询
     *
     * @param wxOpenId
     * @return
     */
    SysUser selectByWxOpenId(String wxOpenId);

    /**
     * 通过用户名查询用户
     *
     * @param username
     * @return
     */
    SysUser selectByUsername(String username);

    /**
     * 微信绑定
     * @param wxOpenId
     */
    SysUser bind(String wxOpenId);

    /**
     * 微信解绑
     * @param userId
     */
    void unBind(Long userId);
}
